{template header}
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" type="text/css" href="extend/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript" src="extend/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="extend/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script language="javascript" type="text/javascript">
J(function(){
	bopuruiObj.product = {
		init: function(){
			var cookName = 'selectProduct{$oneArr[categoryId]}';
			bopuruiObj.command.cookName = cookName;
			var selectProduct = getcookie(cookName)!='' ? getcookie(cookName) : '';
			J('#intoShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				//if(J('input[name=productId[]]:checked').length==0){
				if(getcookie(cookName)=='' || getcookie(cookName)==','){
					alert('请选择产品！');
				}else{
					var productId = '';
					//J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					productId = getcookie(cookName).replace(/\,/g,'-')
					if(productId!='') {
						var prIdArr = productId.split('-');
						var productAmountValue = '';
						for(v in prIdArr) {
							productAmountValue += J('#amount_'+prIdArr[v]).val() + '-';
						}
					}
					ajaxmenu('/product-detail-{$categoryId}.htm?intoShopping=add&pid='+productId+'&pvalue='+productAmountValue, 0, 0, 0, function(s){J('#cartCount').html(J('#ShopcartCount').find('b').eq(0).html())});
				}
				<!--{/if}-->
			});
			
			J('a[id=alertImg]').fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'
			});

			J('#ImmediatelyShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(getcookie(cookName)=='' || getcookie(cookName)==','){
					alert('请选择产品！');
				}else{
					var productId = '';
					//J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					productId = getcookie(cookName).replace(/\,/g,'-');
					if(productId!='') {
						var prIdArr = productId.split('-');
						var productAmountValue = '';
						for(v in prIdArr) {
							productAmountValue += J('#amount_'+prIdArr[v]).val() + '-';
						}
					}
					location.href='/product-detail-{$categoryId}.htm?intoShopping=add&action=now&pid='+productId+'&pvalue='+productAmountValue;
				}
				<!--{/if}-->
			});
			
			J('#selectAll').click(function(){
				if(J(this).attr('checked')==true){
					J('input[name=productId[]]').attr('checked', true)
				}else{
					J('input[name=productId[]]').attr('checked', false)
				}
			});
			
			bopuruiObj.command.mtabletr();
			bopuruiObj.command.selectBoxAll();
			
			if(selectProduct!=''){
				J('input[Tags=mark]').each( function(){
					if(selectProduct.indexOf(','+J(this).val()+',')>-1){
						J(this).attr('checked', true);
						jQuery(this).parent().parent().removeClass('cur');
						jQuery(this).parent().parent().mousemove(function(){jQuery(this).removeClass('cur');});
						jQuery(this).parent().parent().addClass('table1a');
					}
				});
			}
		}	
	}
	bopuruiObj.product.init();
});
</script>

<style type="text/css">

#bbv{position:fixed;top:300px;right:10px;_position:absolute;_top:expression(documentElement.scrollTop+300);}
#dbimg{width:50px;height:50px;height:22px;background:url(../images/pk.gif);text-align:center;color:#fff;font-weight:bold;padding-top:28px;cursor:pointer;}
#xsyc{border:2px dotted #f00;position:absolute;line-height:10px;width:15px;height:15px;top:-20px;opacity:0.9;filter:alpha(opacity=90);z-index:999;}
#dbnr{display:none;position:absolute;top:0;right:55px;border:6px solid #FBDDE7;background:#FCFCFC;width:272px;overflow:hidden;z-index:9;}
#dbnr b{display:block;clear:both;height:26px;font-size:14px;padding:8px 0 0 10px;}
#dbnr b span{float:left;}
#dbnr b span.span2{float:right;padding-right:7px;font-size:12px;font-weight:normal;cursor:pointer;}
#dbnr ul{width:246px;overflow:hidden;padding:0 0 4px 14px;}
#dbnr ul li{width:240px;overflow:hidden;padding:0 0 7px 0;color:#CA0065;}
#dbnr img{cursor:pointer;}
.pkbut{clear:both;height:45px;background:url(../images/pkline.gif) repeat-x;padding-left:60px;}
.pkbut span{display:inline-block;float:left;width:65px;height:22px;background:url(../images/allbut4.gif) no-repeat;text-align:center;line-height:22px;color:#C54870;margin:12px 18px 0 0;cursor:pointer;}
.pkbut span a:link,.pkbut span a:visited{text-decoration:none;color:#C54870;}
.pkbut span a:active,.pkbut span a:hover{text-decoration:none;color:#C54870;}
#tishi{width:100%;text-align:center;padding-bottom:10px;}
dl,dd,dt,ul,ol,li,h1,h2,h3,h4,h5,h6{list-style-position:outside;list-style-type:none;margin:0px;padding:0px;border:0px;}

</style>
<script src="js/yokautf_0.1.js" type="text/javascript" charset="utf-8"></script>

<div class="top_1"></div>
<div class="top_2">
	  <div class="con_left">
		  {template userlogin}		  
		  {template product_left}			
	  </div>
        
  <div class="con_box_left">
     <div class="pro_center_top"><img src="images/darkgreen/023.gif" /> 系列信息</div>
       
	<div class="pro_right" >
		<!--{if $oneArr[picture]=='' }-->
		<a id="alertImg" href="{$oneArr[picture]}" ><img src="/images/darkgreen/l_0205.gif" width="242" height="201" border="1" /></a>
		<!--{else}-->
		<a id="alertImg" href="{$oneArr[picture]}" ><img src="{$oneArr[picture]}" alt="{$oneArr[cateName]}" width="242" height="201" border="0" style=" cursor:pointer" /></a>
		<!--{/if}-->
		<a id="alertImg" href="{$oneArr[picture]}"><img src="images/darkgreen/l_011.gif" border="0" style="margin-top:5px;" /></a>    </div>
	 	<div class="pro_right_r" >
	 	  <table width="350" height="175" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="350" valign="top" style="padding-left:12px; line-height:20px;padding-top:12px;padding-bottom:10px;able-layout:fixed; word-break: break-all; overflow:hidden; color:#2CA326; font-family:Arial, Helvetica, sans-serif; font-size:12px"><strong><font style="font-size:16px; color:#666666">{$toArr[cateName]}—{$oneArr[cateName]}</font></strong><br/>{$oneArr[content]}</td>
            </tr>
          </table>
	 	</div>
    <div class="clear"></div>
     
    <div >  	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div class="search_top">
		<form action="product-serchdetail.htm" method="get">
			<ul>
				<li class="search_a">					
					<select name="categoryId" id="selectStyless" class="in_text_cla1">
						<option value="0">全部类别...</option>
						<!--{loop $optionListArr $list}-->
						<option value="{$list[categoryId]}">{$list[cateName]}</option>
						<!--{/loop}-->
					</select>
					<script type="text/javascript">
						J('#selectStyless').selectCss();
					</script>					
				</li>
				<li class="search_b"><input class="SearchTextb Em" name="keyword" type="text" value="请输入产品说明" /></li>
				<li class="search_c">
				  <input name="serchSubmit" type="image" src="images/darkgreen/l_0217.gif" /></li>
			</ul>
			</form>
		</div></td>
        </tr>
      </table> 
      <img src="images/darkgreen/l_012.gif" />

      <form id="form1" name="form1" method="post" action="">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px; font-size:14px" class="table1">
		<tbody>
          <tr><th width="1%">
            <td width="7%" height="30" align="center" bgcolor="#EAEAEA"><label>全选<input type="checkbox" id="selectAll" value="all" /></label></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>订货号</strong></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="28%" align="center" bgcolor="#EAEAEA"><strong>产品说明</strong></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="13%" align="center" bgcolor="#EAEAEA"><strong>存货类型</strong></td>
            <td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="12%" align="center" bgcolor="#EAEAEA"><strong>市场价</strong></td>
			<td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>会员价</strong></td>
			<td width="1%" align="center" bgcolor="#EAEAEA"><img src="images/darkgreen/l_013.gif" width="2" height="20" /></td>
            <td width="11%" align="center" bgcolor="#EAEAEA"><strong>数量</strong></td>
            <td width="1%"></th>
		   <!--{loop $productArr $key $list}-->
			<tr id="tr_$list[productId]">
				<td height="28" colspan="2" align="center" style="border-bottom:1px dashed #999999"><input type="checkbox" name="productId[]" Tags="mark" value="{$list[productId]}" /></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td style="border-bottom:1px dashed #999999; padding-left:10px;"><font class="ari" >{$list[productNo]}</font></td>
				<td align="center" style="border-bottom:1px dashed #999999; line-height:40px;" >&nbsp;</td>
				<td style="border-bottom:1px dashed #999999;  padding-left:10px;" ><!-- <a class='alt' href="#" _fcksavedurl="#"><span>{$list[content]}</span>--><font class="ari" >{$list[content]}&nbsp;</font></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="center" style="border-bottom:1px dashed #999999">{$list[stockType]}</td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="right" style="border-bottom:1px dashed #999999; padding-right:5px;"><font class="scj">$list[ourPrice]</font></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="right" style="border-bottom:1px dashed #999999;padding-right:5px;"><font class="hyj">$list[userPrice]</font></td>
				<td align="center" style="border-bottom:1px dashed #999999">&nbsp;</td>
				<td align="right" style="border-bottom:1px dashed #999999;padding-right:5px; "><input name="amount" type="text" id="amount_{$list[productId]}" class="in_text_cla1" style="text-align:center;width: 40px; height:15px; line-height:15px;" value="1" size="6" maxlength="4" /></td>
			</tr>
			<!--{/loop}-->
		  </tbody>
        </table>
		<!--{if $multipage!=''}-->
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
          <tr>
            <td height="30" align="right" bgcolor="#EAEAEA">
				<div class="pages">
					<div class="scott" style="text-align:center;">
						<!--{$multipage}-->	
					</div>					
				</div>
			
			</td>
          </tr>
        </table>
		<!--{/if}-->
		<!--{if $numCount>0}-->
		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
		  <tr>
			<td width="19%" height="40" valign="middle">
			<img id="ImmediatelyShopping" src="images/darkgreen/l_015.gif" style="cursor:pointer" />
			<td width="81%" valign="middle">
			<img id="intoShopping" src="images/darkgreen/l_016.gif" style="cursor:pointer" />
			</td>
		  </tr>
		</table>
		<!--{/if}-->
      </form>
    </div>
  </div>
</div>
  <div class="top_3"></div>
  
  
{template footer}